using deprecated methods because we have to work with pylibmc 1.2.2-1