pull down to refresh

You could run Python at server side and do client side requests from JavaScript to it.