Add base.py for define apollo-collector service interface