Javascript Use Variable Inside Regexp In Python A Namespace