pyview revised (phase 2)