removed unused import
fixed plugin pep8 and added unlink function to remove file if local or filesystem