python: handle == dependency requirement correctly

Rework of PR #452. Added test for this and moved == to = conversion from pyfpm to package/python.rb.