[XLA:Python] Use PyType_FromSpec to build heap types, rather than manually building Python heap types.
[XLA:Python] Use PyType_FromSpec to build heap types, rather than manually building Python heap types.

Cleanup; no functional changes intended.
