configure: use a semver Range object for checking the Python version
configure: guard against the possibility of `semver.parse()` throwing

Not really sure if this ever happens, but just in case...
configure: strip "rc" from Python version number

Fixes #279.
v0.10.4