Add monitoring to Prior and clean up for PEP8