Nice! As an aside, could you please improve the error message for "password length invalid" - took me a few tries to figure out how short it has to be. Best of luck!
Want to learn more about Markov Models? What they are, how they work, and how to implement them in Python? Check out this article I just published on Medium :)