update python source code