Module for creating DAGman files