cleaned up the Python FD tool