added some checks for python support