Python codes with generally no real purpose in life