Bugfix in resources.py: missing 'import inspect'