How to get client IP address/target port in python code