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