I have python code which keeps giving below error. To the surprise it keeps coming in one environment (QA) but does not happen in another (DEV) inspite of using exact same code