Refactor code for Python 3 compatibility
Merge remote-tracking branch 'babs/pynma'

Conflicts:
	pynma/pynma.py
Merge pull request #4 from zoni/python3

Python3 compatibility