jinja-ify python call so it works for CentOS 5