@hondagx35: thanks! It was problem in my case as well, now my remote is finally working I also got a new IR receiver and now it works much better than before on Raspbian, when I was using a receiver from an old DVD player.
@phuongdk and @mishgun: sorry for waiting, I had some work to do and I still didn't managed to fix a few bugs with my code but I'll try to write it as it is tomorrow and provide it to you so once I fix that bugs then I'll update the code.
EDIT: Here you go: lcd-display-and-buttons-in-python-tutorial-and-code-t1191.html