Expand is a project mainly written in ..., it's free.
Bash like variable expansion in Python
Girish Sastry 2010-12-19
Expand
A Bash-esque macro processor expander in Python. Expand all your environs!