a book network analysis script for python