Hi,
Very old versions of pytorch used to have a compatibility layer to do this but it was removed a while ago.
It might be simpler for your to dump the file in json from lua and reload it in python. It will be a bit slow but should be fairly simple.