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