big change in Badger.py about datasetfunction,also some change on scripts/