MRG: relax threshold for failing test + cleanup

Relax threshold for failing test as suggested by Omar.

Closes gh-455.

Clean up some PEP8 formatting.