Simplification

x == True is redundant.
Less lines, same stuff

Improved dictionary creation.
Do not use equality with None. (Use identity).
Unused variable
Typo and extra whitespace
Semicolons in Python?
Merge pull request #175 from mafagafo/python3

Faster, better, stronger & brighter