classics coded in python