:fix: correction on python2yaml function usage, several small style improvements and minor corrections in data handling