Python programs to simulate Bitcoin