use {} instead of dict() for better performance
Revert "dropped support for py2.6"

This reverts commit f4e18602b977a3d6bd5c37ba41630510f3e3fb5b.