python. Fixed refs to default instances in java.