python requests test response code