PY: Added black.py and contract.py