I don't know a simple way to do this. My approach is two step:
- Delete all imports (or comment them out)
- Cmd+Shift+O to build a new set of imports
But PyDev can't always figure out which modules you need (especially when you use aliases), so this isn't foolproof. Always make sure you can revert your changes.