Ironically I had searched (on Google) for such a library before I started, but it didn't show up (maybe because it's a part of the App Engine API and I was using AWS at the time).
Of course I'd recommend using that library instead, but at least it was a learning experience for me creating it.