AFAIK HN doesn't use continuations, but closures.
Something along the lines of(imitation of arc challenge in flask):
https://gist.github.com/3998745