custom repo python script with better group support