Create pybase.py

python version of base