Include TypeError Detection

Check for NoneType in Python