The name of python file holding Resources should be resources.py not api.py.