Refine python and jeid mode settings