How to do a simple port scanner with Python