Add *.pyc to .gitignore.
Refactored into Flattener class.

- Flattener takes repr function as parameter (used only for subscripts)
- Flattener is a generator. It yields name-value pairs.
- main is now responsible for catching weird values and for printing.
Moved Flattener class to separate module.