Some corrections for python2.7 support + added new module to manage data