Using Path in main instead of urlparse