Print statement removed and py3.0 bug fixed