Use regex to ignore extra characters in input

Add shebang to sender.py