doc formatting tweaks
install pytest (this wasn't a problem before - why is it suddenly independently required?)