improve python3 compat
retemplated the index page, someone please test, as python3 is broke