IIUC, you've generated a tree sequence entirely in python (e.g., by doing msprime + pyslim.annotate()), and then want to load it into SLiMv5. To do this, use the next version of pyslim (currently in beta):
https://pypi.org/project/pyslim/1.1b1/; AFAIK there are no issues and I'm going to do a real release in the next few days. And please report any issues you encounter!