write python setting