Python3

Python 3 support needed for jprops on pip. These are some fixes for that along with a few modified tests though not all tests work.