President Vladimir Putin dissolved the Russian government Wednesday in a major political shakeup ahead of parliamentary elections in less than three months and a presidential vote next year , news agencies reported .