def register_input_converter(converter, prepend=False):
 global INPUT_CONVERTER
 if prepend:
  INPUT_CONVERTER.insert(0, converter)
 else:
  INPUT_CONVERTER.append(converter)

def register_input_converter ( converter , prepend = False ) : global INPUT_CONVERTER if prepend : INPUT_CONVERTER . insert ( 0 , converter ) else : INPUT_CONVERTER . append ( converter )
registers an input converter to the list of global input converters .