ebi python code