import base64

sample = b'\xa3\xf7\x08\x9d\x9d\x07\x16\xc7\x9f\xa0'

print(sample)

encode = base64.b64encode(sample)

print(encode.decode())