This is example Python code to create a Bitcoin transaction from scratch and push it out to the Bitcoin network. This code goes with my blog post on Bitcoin. I don't recommend actually using this code; it's purely for example.