fix for older python