added check for python3