WRITING A BLOCKCHAIN IN PYTHON