Leveraging Python for Effective Penetration Testing and Cybersecurity