Make unittest compatibles with python 2.6
Use python 2.6 syntax only
Add 2.6 and 3.2 versions to Travis configuration
Fix #7 hasattr implementation for python3