Bugfix in from_yaml loader classmethod