Strip unused imports in ec2.py