use web.py template framework and finish function to upload markdown file