We can't use print in Topographica except for temporary debugging statements; this should be something like self.warning("Pattern generator %s returned None; unable to generate Activity pattern" % self.input_generator.name).

It would be good to add a comment above this saying when an input_generator might return None, and what that means.