Is Air SDK Compatible with Anafi Thermal Drone ? Can we run python code inside thermal drone

Hi folks,
I was trying to connect a drone to cloud using Python Script running inside Anafi drone.
I have two options:
1. If it’s possible to run Python script inside Anafi Thermal then good to go.
2. Hence is it possible to mount raspberry pi on top of Anafi thermal and communicate between Rpi and drone using Olympe SDK or Mavlink (using dronekit)