merge osd.py and application.py
merge group.py into stage.py