DemoActivity can log scope hierarchy

Adding a menu option to DemoActivity to be able to log the scope hierarchy and easily inspect it.
Merge pull request #71 from square/py/hierarchy_in_sample

DemoActivity can log scope hierarchy