How to wait until page is loaded for Selenium WebDriver with Python?

I want to get an element from a webpage in Selenium Python. But I am getting NoSuchElementException even when the element is there.

Upon debugging, I found that the page was not loaded completely when the command was executed.

So is there a way by which I can wait, till the page loads, or the element appears?