new parameter http_options to set options for token HTTPRequests
Bump to 0.4.0
Move towards Python3 compatibility