porting spm to python, no more extensions in app scripts