Fix indentation, pep8ify, rm unsused imports.