input: Write a python function to remove a package from the pipfile. 
  assert isinstance(Project().remove_package_from_pipfile('package_name'), None)
  assert isinstance(Project().remove_package_from_pipfile('another_package', dev=True), None)
output: def remove_package_from_pipfile(self, package_name, dev=False):
      import toml
      try:
          with open('Pipfile', 'r') as f:
              pipfile = toml.load(f)
          
          if dev:
              del pipfile['dev-packages'][package_name]
          else:
              del pipfile['packages'][package_name]
          
          with open('Pipfile', 'w') as f:
              toml.dump(pipfile, f)
      except KeyError:
          pass