update two python scripts