Python Create Class Object From String To Binary