Ok,
Is there an easy way to do this:
I want to take a string and convert it to a binary string with base of my choice and convert it back. So base 2 would be 1's and 0's, etc.
example:
in_string = "testing"
binary_string = string2binary(in_string, base = 2) """ 01110100 01100101 01110011 01110100 01101001 01101110 01100111"""
out_string = binary2string(binary_string, base = 2)
print out_string ##testing