[lib] actions: fix a bug in define_vms
[bin+lib+engine] several bugfixes, pep8, doc + fix #58