Split to cli module and device module.
Add pylint env.