python script for curves added