shlex.split does not understand shell comments. Because of this, a line containing a perfectly valid comment could cause a parse error: shlex.split("# Don't panic") triggers a "No closing quotation" error because of the apostrophe in the comment.
See #214 for a new parser implementation with tests that appears to avoid the issue.