fixed problem with units, pq.Quanitity takes a string so had to decode the bytes for python 3, still works for python 2, conversion to bytes might cause problems elsewere