fix for nonstandard location of python
rewrite conditional syntax