Python parser for bash
bashlex is a Python port of the parser used internally by GNU bash.
For the most part it's transliterated from C, the major differences are:
See https://github.com/idank/bashlex/blob/master/README.md for more info.