BUGFIX - Remove with_metaclass method by dinkopehar · Pull Request #9 · msiemens/tinydb-serialization
This pull references this issue.
If I understood your code correctly, with_metaclass is method for compatibility between python 2 and python 3 for creating meta classes.
Since it's removed from TinyDB (v4.0.0), I refactored code, and run unit tests successfully. If I made a mistake or did something wrong, please notify me. Thank you.