Script written in Python 3.3.2..
Tested on Ubuntu 12.04 with MySQL 5.6.12..
Requirements:
Already Installed latest version of Percona Xtrabackup.