updates sample application for python