Rewrite python backend and dashing upgrade