This seems to be a better solution for python files