The static generation part is not there, but there is Frozen-Flask for that: http://packages.python.org/Frozen-Flask/