Also, since the version in ntpath.py was the same as the version in posixpath.py I modified both, replacing "/" with os.sep (is that correct?).
see my comment on the site
(in short: you should split on either os.sep or os.altsep, or normalize before splitting. and don't forget UNC names: \machine\directory...).