Making a python/shell script run in httpd_t (or some other domain)