separate accessory.py into several files.