Add largs in config register func. + PEP8 fix.
Merge pull request #2228 from matham/config-arg

Add largs in config register func.