Updated swift.py to remove failed call to main