Usage of os.path method of the os module. From http://www.diveintopython3.net/comprehensions.html