Have a look at Sinatra and Tornado. Single-file projects are possible as well and it'll lead you down a road to quick deliveries and better tooling.
The same for sh/bash. It's great for very simple automation/scripts, but after certain level, it's much much easier to use a language which helps you write maintainable code and doesn't actively try to stop you.