Adding a simple password checker in Python