fromstring() is deprecated. change to use suggested frombytes()