Forgot to correct the argument to the split() method; the file containing the common passwords has \n line endings, not \r\n line endings.