Some python utils