Update resource.py

Fixed copy-paste typo.