Write escape sequences without using subshell

Drop invoking 'printf' command, use sys.stdout.write instead.
Merge pull request #23 from leonidborisenko/feature/write-escape-sequences-without-subshell

Write escape sequences without using subshell
Thanks @leonidborisenko