import pymel.core as pm
pm.fileDialog2 (or pm.fileDialog, but I'm pretty sure that's antiquated)
Writing a plugin is actually deceivingly simple. There's TONS of tutorials online if you just google it. First thing I googled (not necessarily the best at all):
http://volcore.limbic.com/2011/09/25/writing-maya-plugins/