Fixed test_fields on Windows and some PEP8 love.
Merge pull request #286 from schlamar/test-fields

Fixed test_fields on Windows and some PEP8 love.