This is no longer needed and should be removed. If you rebase you can now use `der_encode_dsa_signature` from `utils.py` inside the tests dir.