import os.path

Accidentally removed 'import os.path' - now it's back!