add initial .gitignore
fix error type raised by parsing a string.
_parse will return a tuple only if requested

Fixes LP:1247643