Added python wrappers for TCP setups