Update haproxy-api.py

Code Injection fix.