Generic model conforms to pep8, test of string repr added, imports fixed