Intent a safety check for bytes body in python 3