learning python and writing inane code