General cleanup
The code is a bit dirty of comment left here and there. Also, need to order the header file (by using isort) and maybe reoredr the methods like suggested in this thread https://discuss.tryton.org/t/proposal-create-project-coding-standard-for-tryton/2295