use new-style constructors everywhere
Merge pull request #387 from shish/linting

Use new-style constructors everywhere