Added file .gitignore.
Rewrote doctest for parsing type to python code.