First, Xcode doesn’t support python . Even if you use custom workflows it’ll be a nightmare to get a work around. Second, use pycharm if you want a good python IDE.
Read moreHow do I run a Python script in Swift?
Calling Python Scripts from Swift by PythonKit.
Read more