Python AttributeError when included in dir()

How does what i'm doing differ from the alarm code though?

com.inductiveautomation.ignition.common.alarming.config import CommonAlarmProperties, AlarmModeProperties
properties = {}
properties.update(dict((s.getName(), s.getDefaultValue()) for s in CommonAlarmProperties.values()))

Edit:
Using this works, but it turns out I don't think I have the right objects to get the default config :confused: any ideas?

from com.inductiveautomation.ignition.common.tags.config import BasicTagConfigurationModel
from com.inductiveautomation.ignition.common.tags.config.types import TagObjectType
from com.inductiveautomation.ignition.common.tags.paths import BasicTagPath

tagPath = BasicTagPath('path')
a = BasicTagConfigurationModel(tagPath,   # path
							   True,      # mutable
							   False,     # inherited
							   True,      # isNew
							   TagObjectType.AtomicTag) # type
print a.values

Edit:
a.values just prints an empty list