Convert Array from list of tuple to list of list
fix getDDL and currentVersion
Remove useless (and mostly wrong) shebanf from files.
Some PEP8 fixes on the fly