diff --git a/sortinghat/cmd/init.py b/sortinghat/cmd/init.py
index <HASH>..<HASH> 100644
--- a/sortinghat/cmd/init.py
+++ b/sortinghat/cmd/init.py
@@ -119,7 +119,10 @@ class Init(Command):
         import csv
         import pkg_resources
 
-        f = pkg_resources.resource_stream('sortinghat', 'data/countries.csv')
-        reader = csv.DictReader(f, fieldnames=['name', 'code', 'alpha3'])
+        filename = pkg_resources.resource_filename('sortinghat', 'data/countries.csv')
 
-        return [Country(**c) for c in reader]
+        with open(filename, 'r') as f:
+            reader = csv.DictReader(f, fieldnames=['name', 'code', 'alpha3'])
+            countries = [Country(**c) for c in reader]
+
+        return countries
[cmd:init] Update CSV reader to support Python 2/3

In Python 3, the CSV reader needs a str object as input
and not a stream object. pkg_resources returned a stream
object so, it was needed to open the CSV file in text
mode. This method is compatible on both Python versions.