'Return user details from Trello account'

def get_user_details(self, response):

    name_arr = response.get('fullName').split()
    first_name = None
    last_name = None
    if (len(name_arr) > 0):
        first_name = name_arr[0]
    if (len(name_arr) > 1):
        last_name = name_arr[1]
    return {'username': response.get('username'), 'email': response.get('email'), 'first_name': first_name, 'last_name': last_name}
