Batch framework for Python