Allow closing a figure by long ID number.

Creating a figure with a type(long) figure number is allowed, so closing should be similarly allowed.

close figure with type UUID as figure number

if we can create a figure with a number that is type UUID,
then it is reasonable to be able to close the figure with it as well.

make the allowed int types Python 2 and 3 compatible
Merge pull request #2683 from JamesMakela/close_long_fig_num

Close a figure with a type long or uuid figure number