I am trying to write a script that takes in photometry data of a potentially variable star and tries to fit a theoretical template to it to determine several characteristics