modify dpma.py and deployproxy_tests.py