support for running from python environment