Allow graceful fallback to the pure Python module

Also brought the errors in line with the pure Python module.