Fix bash prompt for tmux/screen etc.

Check for deactivate function when setting the prefix on bash
prompt for Virtualenv
Import print_function in docs py snippet