Only import dulwich from python2/dulwich if the installed module not found.