add rna functions id.animation_data_create() and id.animation_data_clear() - works for all ID types that support animdata.
svn status