TODO make it work in old Python versions modularizing custom types support for yaml serialization extract dateutils from the module