Python Fit Function To Data Transfer