def speedup(): try: import psyco psyco.bind(disjointset) psyco.bind(vector2d) psyco.bind(line2d) psyco.bind(savebmp) except ImportError: pass