modified myscitools.py