\usepackage{listings}
\usepackage{natbib}
\usepackage{hyperref}

\lstset{ 
    showstringspaces=true, 
    backgroundcolor=\color{white}, % choose the background color 
    % basicstyle=\footnotesize, % size of fonts used for the code 
    breaklines=true, % automatic line breaking only at whitespace 
    keywordstyle=\color{black}, % keyword style 
    stringstyle=\color{black}, % string literal style 
    language=python, % Set your language (you can change the language for each code-block optionally) 
    frame=lrtb, % 
    xleftmargin=\fboxsep, % 
    xrightmargin=-\fboxsep, % 
}
