Community.dispersy_yield_candidates() will never return candidates which have none as a category. However, you attempt to write candidates which are in the "none" category to file. Is this intentional?