The Python 3 examples use the ussl library internally

…but page 135 of the XBee Micropython Programmers Guide says that ussl canot be used with IPPROTO_SEC only with IPPROTO_TCP. Can you show me an AWS publish example that works with Python 3?

MicroPython is not the same as Python 3.0. You really should be looking at a Python 3.0 help file or code book for Python 3.0 coding assistance.