Replaced print with print_function from __future__, refs #38.
Fix pep8.
Merge branch 'master' into issue38_11

Conflicts:
	greentest/test_threading_2.py