Moving InputSplitter to its own file so it can be shared. Changing user I/O functions of disc-catalog.py to use the InputSplitter.