Is there any effect of unused imports in a Python script?
You pollute your namespace with names that could interfere with your variables and occupy some memory.
Also you will have a longer startup time as the program has to load the module.
In any case, I would not become too neurotic with this, as if you are writing code you could end up writing and deleting import os continuously as your code is modified.  Some IDE's as PyCharm detect unused imports so you can rely on them after your code is finished or nearly completed.
Do unused imports in Python hamper performance?