Fix compatibility with Python 3.3
Correct recursive lookup
Python 3.3 compatible
Python 3.3 compatible