Create Python objects from text files