Make perf attributes depending on the resource module optional.

This makes the module usable on Python implementations, such as
Jython, that lack the resource module.
Merge branch 'master' into python3
Bumped version number.
Merge branch 'master' into python3

Conflicts:
	setup.py