Improve python 3 compatibility
    * Use relative import paths
    * imprve use of timer for refreshing