Update python settings