You shouldn't have print statements in here. There should be no information going to stdout.