nit: The convention in python is not use parenthesis in the conditional part if it fit on one line:

`if 'c' in dataNeeded:`