Update pyplayer.py

added initial code