Add some more analysis funcs to the python sync code