Return the longest string prefix (taken character-by-character) that is a prefix of all strings in list. If list is empty, return the empty string ('').
os.path.commonprefix(list)
>>> os.path.commonprefix(['/usr/lib', '/usr/local/lib'])
'/usr/l'
>>> os.path.commonpath(['/usr/lib', '/usr/local/lib'])
'/usr'