refactoring python out of overview.html
(both new function calls and the inline python are in the file now)