Update core.py

fix bug on python 3.3
r.headers.get('Content-Type', '') is bytes