A few simple problems in Python