Details in this SO question: http://stackoverflow.com/questions/34403912/when-trying-to-request-for-oauth-access-token-i-get-typeerror-encode-argumen Error is `TypeError: encode() argument 1 must be string, not None`