def get_type_string(data):
 data_type = type(data)
 if (data_type in six.integer_types):
  return u'integer'
 elif (data_type == float):
  return u'float'
 elif (data_type == bool):
  return u'boolean'
 elif (data_type in (list, tuple)):
  return u'list'
 elif (data_type == dict):
  return u'hash'
 elif (data is None):
  return u'null'
 elif isinstance(data, six.string_types):
  return u'string'

def get_type_string ( data ) : data_type = type ( data ) if ( data_type in six . integer_types ) : return u'integer' elif ( data_type == float ) : return u'float' elif ( data_type == bool ) : return u'boolean' elif ( data_type in ( list , tuple ) ) : return u'list' elif ( data_type == dict ) : return u'hash' elif ( data is None ) : return u'null' elif isinstance ( data , six . string_types ) : return u'string'
return type string of an object .