Python script to calculate the inter and intra ratios of a residue in and between leaflets