urlopen for py3

Signed-off-by: Michal Čihař <michal@cihar.com>
Properly mark byte strings

Signed-off-by: Michal Čihař <michal@cihar.com>
Need to encode unicode string

Signed-off-by: Michal Čihař <michal@cihar.com>
Fix some unicode problems

Signed-off-by: Michal Čihař <michal@cihar.com>
Need bytes string here

Signed-off-by: Michal Čihař <michal@cihar.com>
Fixed encoding handling for both py2 and py3

Signed-off-by: Michal Čihař <michal@cihar.com>
Fixed urllib interaction for py3

Signed-off-by: Michal Čihař <michal@cihar.com>
Fixed config file handling for both py2 and py3

Signed-off-by: Michal Čihař <michal@cihar.com>