changed print methods to be python3 compatible