Improve python3 compatibility by removing relative imports