bpo-42002: Clean up initialization of the sys module. (GH-22642)

Makes the code clearer and make errors handling more correct.
1 file changed