Fit Method In Python Example Codes For Loggable Interface