Changed function arguments in python wrapper from bytes to str