Fixed auto-type issue with python