Add HAProxy configuration and correct code to be valid with PEP8