removed unused copy_list-function
code cleanup: removed thrailing spaces, added spaces after commas and use new raise-syntax
fixed backslash in regexp
removed unused variables
more print-statements changed to print-function-calls