Import Directive base class from morepath.directive instead.