Add Python 3 support

Change-Id: I65fabfc4788230b7280808ec912601c327095db0