Revert assertion on to_python