Python Iterate Over Byte Array To Base64