Added pyAMI code to get xsec, not tested