Update proxy.py

Added metadata req/res param