Do not modify "im_class"

This fixes #82.