Hmm...given that Python has an indentation-based syntax, it's hard to tell with this formatting if some of your loops and conditionals are nested or not. There could also be an issue related to how the collision is interplaying with your images, which I can't tell without seeing them.
Can you email the whole project to me to look at? game.professor@yandex.com