I\'m trying to convert bitcoin RPC calls into functions to use in python, some of the RPC API calls have parameters such as the block height for the command getblockhash.