@staticmethod
def __gettype(obj):
    """
        python 3 returns <class 'something'> instead of <type 'something'>.
        For backward compatibility, we replace class with type.
        """
    return str(type(obj)).replace('class', 'type')
