fixed contacted.py (argument error and py2.6 compatibility)