This code will always ask the same question, i.e. the last question found, so it appears that it is not working because it puts up the same question. Add a print statement to the function to prove this to yourself.
for question in questions: if question.difficulty == newDifficulty: newQuestion = question