Fixed tests.

Test should pass now with Python 2.6, 3.2 and 3.3.
Updated .gitignore.