def create_signature(cls, method, base, params, consumer_secret, token_secret=''): consumer_secret = parse.quote(consumer_secret, '') token_secret = parse.quote(token_secret, '') return parse.quote('&'.join((consumer_secret, token_secret)), '')