Since you are familiar with python why not pick up one of the python web frameworks(i.e. Django, flask, pyramid). As far as being afraid of the security aspects, don't be it is just a game. No one will die if your web game is hacked. On the other hand read up on web app security. Since it is something every web app will have to deal with, frameworks try to make securing your app easy.