general scripts and pypthon codes