ignore .idea folder for PyCharm
remove unnecessary import of sys
urls only need to end with a trailing slash if there is no path component. close #30