import baselib before ast since ast uses dir from baselib