Set user-agent in main program instead of support code
Import whole binascii instead of just a2b function
Rename local "getblocktemplate" to "gbt" to prevent name confusion with the module of the same name
Rename stop() method of GetBlockTemplate to join()
Split MakeWork out from generic GetBlockTemplate implementation