Change namedtuple subclasses to regular classes

Fixes #359.