print calls changed to fit python3 syntax