Added Python Code

defines Class, strips periods and empty spaces on either side