Secure Password Handling in Python