Python parser for bash