Tiny fixes

Some PEP8 warnings were fixed. And one undefined name error in `dc_recovery`.

Also there're a lot of unusable imports across pure python modules.  Is this on purpose or by mistake?