Aggregate Formation in Pyridine-Based Polymers