Python grid scheduler