Set restype for every function