split in multiple files and created setup.py that generates a nice console script