How to add a Role profile to user from pytthon code

How to add a Role profile to user from pytthon code