How To Determine Path In Python