the max size of an object

The default maximum object size is 1MB. If you want to increase this size, you have to re-compile memcached. You can modify the value of the POWER_BLOCK within the slabs.c file within the source.

Python memcache

import memcache
memcache.SERVER_MAX_VALUE_LENGTH = 20971520