'Set the Basic Auth credentials on this Session.
:param str username: Your GitHub username
:param str password: Your GitHub password'

def basic_auth(self, username, password):

    if (not (username and password)):
        return
    self.auth = (username, password)
    self.headers.pop('Authorization', None)
