human-readable max_nbytes
basestring Python 3 fix