Basic Python data encoding/decoding scripts