Update resourcemanager.py