py class imports: don't import self
Generated py: initialize class members in __init__

This fixes issues with PropSpecs that reference their
containing class, which doesn't exist during class initialization.