diff --git a/Facebook/README.md b/Facebook/README.md
index 2c77a9f..f9fd548 100644
--- a/Facebook/README.md
+++ b/Facebook/README.md
@@ -9,6 +9,7 @@ Automate replies to all birthday wishes on your facebook wall.
* Get a valid Access Token from [Facebook Graph API explorer](https://developers.facebook.com/tools/explorer/) and grant the following permissions:
* `read_insights`
* `publish_actions`
+ * `user_posts`
* Change the timestamp to your birthday
diff --git a/README.md b/README.md
index c4d8112..061989f 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,6 @@ Here are some scripts that I have written in python. Most of these scripts were
* [FBWishReplier](#FBWish)
* [OS X Mirror](#mirror)
-* [The Sorting Hat](#hat)
* [agecalulator](#calculator)
* [googleSearch.py](#google)
* [location.py](#location)
@@ -27,11 +26,6 @@ https://github.com/iCHAIT/Python-Scripts/tree/master/Facebook
A python script to create the Mirror of the hard disk for the OS X operating system. The script creates a 0 byte directory structure for the entire hard disk.
-## The Sorting Hat
-
-A python script to sort any directory on your linux system on the basis of its type i.e all your music moves to a sub directory MP3, all your pdf files move to a folder PDF and so on.
-
-
## agecalulator
These scripts will calculate your age and the number of days you've lived till now!!
@@ -74,5 +68,6 @@ ISSUES
TODO
====
+* Add Makefile
* Script to wish birthday on friend's wall on facebook.
-* Script for scraping GitHub news feed and mail the data to the user.
\ No newline at end of file
+* Script for scraping GitHub news feed and mail the data to the user.
diff --git a/The Sorting Hat/README.md b/The Sorting Hat/README.md
deleted file mode 100644
index b1aecf1..0000000
--- a/The Sorting Hat/README.md
+++ /dev/null
@@ -1,29 +0,0 @@
-The Sorting Hat
-===========
-
-A python script to sort any directory on your linux system on the basis of its type i.e all your music moves to a sub directory MP3, all your pdf files move to a folder PDF and so on.
-
-
-
-### Why?
-
-The Downloads folder on my Mac became very disorganized with time, having hundreds of file in no order whatsoever made it very difficult to search for anything.
-
-
-
-#### Shout-outs -
-
-* [@dufferzafar](http://github.com/dufferzafar/) for https://github.com/dufferzafar/Autohotkey-Scripts/tree/master/The%20Sorting%20Hat
-
-* [@akifkhan](https://github.com/akifkhan) for https://github.com/akifkhan/Sorting-Hat
-
-
-
-TODO
-====
-
-* Find an elegant way to solve the conflict if the file to be sorted (say README.md ) is already present in the corresponding subdirectory ( MD ).
-
-* Make a **GUI** using **pyQT**.
-
-* Test the script on other linux OS.
diff --git a/The Sorting Hat/sorting-hat.py b/The Sorting Hat/sorting-hat.py
deleted file mode 100644
index ace8e20..0000000
--- a/The Sorting Hat/sorting-hat.py
+++ /dev/null
@@ -1,45 +0,0 @@
-import os
-import shutil
-
-user = os.getenv("USER")
-# direc = "/Users/"+user+"/Downloads/"
-direc = "/Users/"+user+"/Desktop/hat/"
-
-
-def findExtension(files):
- # Find the extension of the file
- extn = os.path.splitext(files)[1].replace('.', '')
- dirname = extn.upper()
- return dirname
-
-
-def FileExist(direc, dirname, files):
- # Check if the file to be sorted already exist in the target subdirectory.
- # if it doesn't then move it.
- if os.path.isfile(os.path.join(direc, dirname, files)):
- print "Could not move "+os.path.join(direc, files)+" it already exist in "+os.path.join(direc, dirname)
- return
- shutil.move(os.path.join(direc, files), os.path.join(direc, dirname))
-
-
-def makeTheDir(files):
- # Make the target sub directory.
- os.mkdir(os.path.join(direc, dirname))
- shutil.move(os.path.join(direc, files), os.path.join(direc, dirname))
-
-
-try:
- os.chdir(direc)
- for files in os.listdir(direc):
- if not files.startswith('.'): # Ignoring hidden files
- if os.path.isfile(files):
- dirname = findExtension(files)
- if os.path.isdir(os.path.join(direc, dirname)):
- FileExist(direc, dirname, files)
-
- else:
- makeTheDir(files)
- print "All Done!"
-
-except IOError:
- print "Error in reading file"
diff --git a/agecalulator/agecalculator1.py b/agecalulator/agecalculator1.py
index d242631..9cf825e 100644
--- a/agecalulator/agecalculator1.py
+++ b/agecalulator/agecalculator1.py
@@ -7,8 +7,8 @@
now = date.today()
age = now - birthday
- print "You are %d years old " % (age.days / 365)
- print "You've lived %d days" % (age.days)
+ print(f"You are {age.days / 365} years old")
+ print(f"You've lived {age.days} days")
-except ValueError, err:
- print 'ERROR:', err
+except ValueError as err:
+ print(f"ERROR: {err}")