Convenient to use resource files in python