python, javascript - voting system based on session.