Replace py.std with stdlib imports.