updated python analysis with new sp class