Python 2.6 compatibility

Replace dict comprehension by Python 2.6 compatible expression.
Merge pull request #4 from phelixbtc/master

Python 2.6 compatibility