demo works in python (except for the big honking crash at the end...)