optmizing python imports