I wrote something similar on top of nodejs to simplify some problems at Game Closure.
http://www.github.com/gameclosure/jash
It's probably not ready for prime time - past it's initial use cases it hasn't been tested much. Things like sh.py and jash are a really neat solution for some problems.