Instead of really dwelving into more code, just using pyflare to circumvent a few steps