update loader to python3