Add .tox to .gitignore
Fix patterns for unindented functions
Python 3.3 support
Added test for wrong pattern TypeError