python3 compatability hopefully