split resources.py into resources.py and package_resources.py