Fixed bug with state class for py3 to close https://github.com/ibell/coolprop/issues/164

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>