Profiling pyecm.py for assignment 6