title: AttributeError 'module' object has no attribute 'decodebytes'
body: <p>I'm doing some processing on an image using <code>OpenCV</code>. Now I need to convert the base64 string to bytes. In <code>Python-3.6</code> I could use <code>base64.decodebytes</code> but I can't find the alternate module in <code>Python-2.7</code> . Is there any other alternative present in <code>Python-2.7</code> ?</p>
  
  <pre><code>cvimg = cv2.imdecode(np_img_array, cv2.IMREAD_COLOR)
  tmp_img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
  img = base64.b64encode(cv2.imencode('.jpg', tmp_img)[1])
  img = base64.decodebytes(img)
  </code></pre>
  
  <p>NOTE: I'm using <code>Python-2.7</code> as one of the module I'm using has not been converted to <code>Python-3.6</code></p>