Misc. code for learning Python