add python3.x support
don't fail when request.body == None