'A simple wrapper that creates a new :class:`User`.
:param username:
String containing the username of the new user.
:param email:
String containing the email address of the new user.
:param password:
String containing the password for the new user.
:param active:
Boolean that defines if the user requires activation by clicking
on a link in an e-mail. Defaults to ``False``.
:param send_email:
Boolean that defines if the user should be sent an email. You could
set this to ``False`` when you want to create a user in your own
code, but don\'t want the user to activate through email.
:return: :class:`User` instance representing the new user.'

def create_user(self, username, email, password, active=False, send_email=True):

    new_user = get_user_model().objects.create_user(username, email, password)
    new_user.is_active = active
    new_user.save()
    for perm in ASSIGNED_PERMISSIONS['profile']:
        assign_perm(perm[0], new_user, get_user_profile(user=new_user))
    for perm in ASSIGNED_PERMISSIONS['user']:
        assign_perm(perm[0], new_user, new_user)
    userena_profile = self.create_userena_profile(new_user)
    if send_email:
        userena_profile.send_activation_email()
    return new_user
