change modules imports to support python3