type_to_parent seems to be a less complete implementation of py_scalar_parent.
The change on this ticket helps get rid some explicit imports from sage.rings.
CC: @tscrim @mezzarobba
Component: refactoring
Author: Matthias Koeppe
Branch/Commit: 4b37cc6
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/29880