- some more refractoring of the cli module

moved all mac related classes to a new module
move some other functions from cli.py to tools.py