Python API - How to get data from the uplink_callback method?

Please format your post when including code to keep things readable. Use the pencil icon to edit your previous post to format it afterwards.