fix older python issues