Updated urlparse to leverage six.moves.urllib

Also changed `sha256()` helper to use binary read instead of utf-8 encoded chunks.