fixed a potential bug where python in some distributions is python 3