Single-shot webserver in Python