Cleanup Blacklist code, Protect from sub-domain hijacking. Upgrade to pyflakes 0.6.1

Change-Id: I7da11d5b7fe0dbf7b1472777034dbb83fb9225d1