fixing stylistic issues in density.py