Fix imports to work in python3