how to connect frontend and backend in python