Eliminate error in Python 3.3: Type str doesn't support the buffer API