If you're interested in calculating population-genetic statistics in sliding windows from .ms files using python, here are some scripts that you can use.

Here are scripts that use either a single or multiple .ms files and summarize a number of allele frequency and LD-based statistics:

Here is a script that will summarize FST-based statistics and also allele frequency-based statistics for each individual population for the same sliding windows: