python3 compatibility, removing unneccesary warnings from test files