Created dispatch.py module which aims to choose the correct method.