a modman bash script alternative in python