Fix: don't parse the last part because if the original string ends with a "\", this last character is deleted
Merge commit '22651b333639834b0dea265f5f0f096564b73c33'
Small Pep8 after cherry pick from squizou