Add Python 3 support.
Python3 and PEP-8 fixes.
Add PHP HTML Purifier whitelist.