better file structure, error handling in python interpretor