import os.path and some other stuff [ci skip]