update url import statement for compatibility

See http://stackoverflow.com/questions/8074955/cannot-import-name-patterns for details.
Merge pull request #14 from gbezyuk/patch-1

update url import statement for compatibility