Implementing the activity view via python: list of activities