Changed reverse_binary files to take input from sys.stdin.