Update kruskalFunction.py

Removed 'self' and added Kruskal function call