Move import pywikibot after third-party libraries

Change-Id: Ie3885f5be1706a356bc598e8e2be1c8aa5d71c17