def __init__(self, user_data):
        """Create a new user object."""
        self.roles = []
        for key, value in user_data.items():
            setattr(self, key, value)
def __init__ ( self , user_data ) : self . roles = [ ] for key , value in user_data . items ( ) : setattr ( self , key , value )
Create a new user object.