First working version of scaffdense.py