Update playmode.py

Add play mode runner functions.