modified dpc.py and created the DPC controller script