One of my favorite techniques for enforcing two-way connections is the "Jeopardy technique". Here's an example for a beginner in python:
Side A: This library is the de-facto standard for http in python.
Side B: What is the "requests" library?
This card is easily reversible in Anki, so you only have to write it once and get quizzed both ways.Edit: formatting