[python] Convert from Optional[Foo]
to Foo | None
#3453
Merged
Optional[Foo]
to Foo | None
#3453