Control GPIO-connected LED using Python and IMAPlib