Check out these two videos to know how to setup and run your Appium Python test cases in iOS device on AWS Device Farm
https://www.youtube.com/watch?v=8xjpepPR3J4
https://www.youtube.com/watch?v=cspcv6xSHtY