Moved printing to __main__ and restored return value to parse_file