Merged operations.py with document.py