Python settings tuning