Require Python >= 3.3.

For consistency, also convert existing checks to use asserts.