Example Python code for creating a Bitcoin transaction