implementing libscopy/core.py