Hi Lorenzo,
One way is to use the web service:
Let's say your proteins are P00533,O75385,P42345
Then you can get interactions by
Of course you can remove datasets and options according to your needs.
You can also query annotations, e.g. pathway memberships:
Other way is to use pypath:
import itertools
from pypath import main, data_formats
pa = main.PyPath()
pa.init_network(data_formats.pathway_all)
proteins = ['P00533', 'O75385', 'P42345']
neighbors = list(itertools.chain(*(pa.neighbors(uniprot).ids() for uniprot in proteins)))
neighborhood_graph = pa.graph.induced_subgraph(neighbors)
# annotations:
from pypath import annot
annot.init_db()
annot.db.search(protein = 'P00533')
I hope this helps.
Best wishes,
Denes