creates a unique list in python without using sets