Removed some trailing spaces in both py and rb files