mget and msetnx commands added

also some fixes for py3k compatibility