I got an error by trying to do a simple base64 encoder. My file isn´t called bas64.py or anything related.
datatoencode = input("Enter the data you want to encode: ")
datatoencode_bytes = datatoencode.encode('ascii')
encodedBytes = base64.b64encode(datatoencode_bytes)
base64_datatoencode = encodedBytes.decode('ascii')
print("Encoded data: " + base64_datatoencode)