Fix user.py travis error and rename to machine_type.py