First, edit your .bash_profile (or create it in your home directory), and add this lines
# For Homebrew
PATH="/usr/local/bin:/usr/local/sbin:$PATH"
# For Homebrew Python 2.7
PATH="/usr/local/share/python:$PATH"
Restart your terminal, so the new .bash_profile is loaded, and execute this commands