I rewrote the script to assume the home folder of the user running it and overall simplified the code implementation. I also added the GPL V3 license. Please test out the script and report any problems as issues on github.
I'm new to Python mostly program C just trying out some scripts to make my life easier, give it a shot ! If you experience any problems please open an issue on github lets make this the best code together.