Python3 ported the autocomplete layer