Add conditions for creation in family. And make correct inheritance.
Don't copy local for Revit python reference.