split local.sh into localpy.sh