Simple file based programs in Python