backporting changes from NeuralEnsemble/parameters/test: mainly fixing PEP8 compatibility& docstrings