To better integrate with the Python Notebook environment, change kgtkreader and kgtkwriter to process Pandas dataframes directly.