Support old versions of python2.X by catching relative import syntax error
Fix broken test

unittest.TestCase.assertAlmostEqual should only be used to compare
numbers. For some reason the test passes anyway on python2.7 and
python3.