initial commit - copied code from python-memcached 1.47