fix auto-format settings bug

Hi, i try me as commiter, here bug fix for autopep8 settings bug and minor improvement for format call.