Fix: Python3 incompatability; Fix: Exception when querying int datatypes