def get_uwsgi_version(): status, output = subprocess.getstatusoutput(['uwsgi --version']) return None if status else output