FIX: Minor fixes to clean up tests in windows
FIX: Py3k on Linux fixes
STY: PEP8
Merge pull request #263 from Eric89GXL/win-fixes

MRG: Minor fixes to clean up tests in windows

Various PEP8 changes and context manager suppression of warnings.