Clean the code.

Clean the code, be more pep8 compliant, fix the undefined EMPTY_VALUES in fields.py line 756, and  remove unnecessary import.