update python collection