some aux python utilities