common python utils