parse.py: Made _parse(input_string) a function