Fix deprecation warnings
id: add missing repr(C)
Merge pull request #398 from ebfe/deprecation