write a webapp with python, thx to liaoxuefeng