fixed demeetr.py that was causing some problems