Changed from IPython notebook to python script

Also added minor changes to print functions for checking whether
supplied lists exceed allowed max length