Updated py3 to match py and added tab completion support.