Currently PyDev moves the import when using the auto-import feature to the top of the file; it would be nice if there was another option to move the import to the top of the current function, generating a local import.