python for coefficient