hack namedtuple in __main__ module, make it picklable.

Do not need import pyspark before using namedtuple