'Creates & returns the HTTP ``Authorization`` header for use with BASIC
Auth.'

def create_basic(self, username, password):

    import base64
    return (u'Basic    %s' % base64.b64encode(u':'.join([username, password]).encode(u'utf-8')).decode(u'utf-8'))
