Update loader to python3