update to new python module syntax