Removed doctests for now, because they are impossible to get right across Python versions.