Use print function

Uses print function so output shows up as expected, without extraneous spacing (fixes #55).