cast to be python3 compliant