It was, though it was fairly new at that time, so the author may not have had it on his system.
Also, the Python standard library is quite large. Most people will never really know about all its nooks and crannies, and it's easy to forget they exist. I've accidentally reimplemented parts of it more than once.
I don't know Python, but was your preferred choice available at that time?