Fixed error in ios python script