Reduce Object Array Creation In Python