Starting new module transfer_entropy_module.py, making functions for frequently used operations.