convert services to python3