replacing the C-based tokenizer by a Python-based tokenizer using the shlex module of the Python standard library