drop python 2.6, add python 3.2 compatibility
fixes some wrong tests