:zap: Added refactored spacify.py and the unit test for it.
Also prepared ext.py for unit test. Will upload the unit test later.