Python settings cleanup