The perfect python batch