update Python script for the new library