Casual code in Python