update python sketch