Python penetration testing