Adding Python3 support for yolk functions that access pypi

Also invisibly changing the format of the pkg_list.pkl cache file from str to bytes, which works with Python2 while allowing Python3 compatibility