I realize this might be more of a python related question but how do I go about doing this in Quantconnect?  Lets say I have the straightforward like the following: 


from QuantConnect import *

class NadionResistanceShield(QCAlgorithm):
def Initialize(self):
self.SetStartDate(2021, 1, 1) # Set Start Date

self.SetCash(5000) # Set Strategy Cash
self.tickers = ["SPY", "BAC"]

for symbol in self.tickers:
self.AddEquity(symbol, Resolution.Hour)
ema50 = self.EMA(symbol, 50, Resolution.Daily, Field.Close)
sma200 = self.SMA(symbol, 200, Resolution.Daily, Field.Close)
symbolData = SymbolData(symbol, ema10, sma200)
self.symbolDataBySymbol[symbol] = symbolData

self.TimeRules.BeforeMarketClose("SPY", 10), self.LongTrade)
self.TimeRules.BeforeMarketClose("SPY", 10), self.ShortTrade)

def LongTrade()
def ShortTrade()

class SymbolData:
def __init__(self, symbol, ema10, sma200):
self.Symbol = symbol
self.ema10 = ema10
self.sma200 = sma200


but I want to take the LongTrade() and ShortTrade() functions out of this file and put them into another one that would get called by this.  How would I go about doing that?