@classmethod
def purchase_twilio_number(cls, user_owner, phone_number):
    """
        Wrapper method of twilio.incoming_phone_numbers.create(phone_number).
        This allows to purchase twilio numbers. Returns a TwilioNumber Instance.
        """
    api = cls.twilio_api()
    tw_number = api.incoming_phone_numbers.create(phone_number=phone_number)
    new_twilio_number, created = cls.objects.get_or_create(twilio_number=
        tw_number.phone_number, defaults={'user': user_owner})
    new_twilio_number.twilio_number_sid = tw_number.sid
    new_twilio_number.sms_enabled = tw_number.capabilities['sms']
    new_twilio_number.mms_enabled = tw_number.capabilities['mms']
    new_twilio_number.voice_enabled = tw_number.capabilities['voice']
    new_twilio_number.friendly_name = tw_number.friendly_name
    new_twilio_number.save()
    new_twilio_number.update_twilio_urls_to_default()
    return new_twilio_number
