Hi there, 

I am getting an error reading "invalid syntax" 

I was wondering if someone could tell me what is the cause of this error :) 

I would be very greatful for any help, thank you. 

def FineSelectionFunction(self, fine):


filtered_fine = [x for x in fine if x.FinancialStatements.IncomeStatement.EBIT.OneMonth
and x.FinancialStatements.BalanceSheet.InvestedCapital.OneMonth
and x.FinancialStatements.BalanceSheet.PreferedStockEquity.OneMonth]



ROIC = [map(lambda x: (FinancialStatements.IncomeStatement.EBIT.OneMonth)/((FinancialStatements.BalanceSheet.InvestedCapital.OneMonth)+(FinancialStatements.BalanceSheet.PreferedStockEquity.OneMonth)), filtered_fine)

sortedByROIC = sorted(ROIC, reverse=True)