Add Python 2.6 compatibility

It seems the only thing preventing the use of this fine library under Python 2.6
is the use of stylish "{k: v for ..." dictionary comprehension syntax. This
commit replaces it with 2.6-compatible "dict()" calls.