Python Regex Extract Match From String To Binary