Fix two tests that were broken for older numpy versions.

This (hopefully) fixes the issue.
Automatic style corrections courtesy of autopep8
Merge remote-tracking branch 'francisco/FIX_tests_fails_round_off_error' into 0.7.x