added checking for python