Revert "Update proxy.py"

This reverts commit 35916021e820e7abecf13d51dbca87833c064f28.
Revert "Revert "Update proxy.py""

This reverts commit 20e58ba0129033bf7eb924cdb7aafd893877d77e.