functions now return type byte when using python 3