made print function python3-compliant