link to my code --> pastebin.com/CsMN0yh2
not doing any type conversion, but its basically one ...big ... huge ... string 
what is interesting to note is, i saw the memory stats for the best python solutions by other ppl and they are significantly low,as much as 3.5M, while mine is near to 15M , compels me to think again on my solution