Returns the HTTP auth header

def _get_auth(username, password):
    '''
    Returns the HTTP auth header
    '''
    if username and password:
        return requests.auth.HTTPBasicAuth(username, password)
    else:
        return None