The script takes in the file path of a MySQL dump and lists each database it finds. Enter the number in the list of the database and it'll be extracted to a new file in the current working dirctory.
Usage:
$ chmod +x sql-dump-extractor.py
$ ./sql-dump-extractor.py /path/to/sql_dump_file