move cython cleanup to cy module

- Fixed config.tdname -> tdname