Split python analysis into pieces for checking against elegant.